import request from '@/utils/request'

/**
 * 查询App用户协议隐私条款维护列表
 * @param {*} query 
 * @returns 
 */
export function listUserAgreement(query) {
    return request({
        url: '/system/userAgreement/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询App用户协议隐私条款维护详细
 * @param {*} id 
 * @returns 
 */
export function getUserAgreement(id) {
    return request({
        url: '/system/userAgreement/' + id,
        method: 'get'
    })
}

/**
 * 新增App用户协议隐私条款维护
 * @param {*} data 
 * @returns 
 */
export function addUserAgreement(data) {
    return request({
        url: '/system/userAgreement',
        method: 'post',
        data: data
    })
}

/**
 * 修改App用户协议隐私条款维护
 * @param {*} data 
 * @returns 
 */
export function updateUserAgreement(data) {
    return request({
        url: '/system/userAgreement',
        method: 'put',
        data: data
    })
}

/**
 * 删除App用户协议隐私条款维护
 * @param {*} id 
 * @returns 
 */
export function delUserAgreement(id) {
    return request({
        url: '/system/userAgreement/' + id,
        method: 'delete'
    })
}
